#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include <string>

using std::string;

namespace cdm{

enum TaskType{
    TASK_REGISTER1 = 1,
    TASK_REGISTER1_RESP_OK,
    TASK_REGISTER1_RESP_ERROR,
    TASK_REGISTER2,
    TASK_REGISTER2_RESP_OK,
    TASK_REGISTER2_RESP_ERROR,

    TASK_LOGIN1 = 7,
    TASK_LOGIN1_RESP_OK,
    TASK_LOGIN1_RESP_ERROR,
    TASK_LOGIN2,
    TASK_LOGIN2_RESP_OK,
    TASK_LOGIN2_RESP_ERROR

};


struct Packet{
    int     _type;
    int     _length;
    string  _msg;
};

struct TLV{
    int type;
    int length;
    char msg[1024];
};



}//end of cdm


#endif


